package org.tagewerk.bookinfo.service.impl;

import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;
import org.tagewerk.bookinfo.dao.BookDAO;
import org.tagewerk.bookinfo.model.Book;
import org.tagewerk.bookinfo.service.BookManager;

public class BookManagerImpl extends GenericManagerImpl<Book, Long> implements
		BookManager {

	private BookDAO dao;
	
	public BookManagerImpl(BookDAO dao){
		super(dao);
		this.dao = dao;
	}
	public List<Book> findByAuthor(String author) {
		return dao.findByAuthor(author);
	}

	public List<Book> findByISBN10(String isbn10) {
		return dao.findByISBN10(isbn10);
	}

	public List<Book> findByISBN13(String isbn13) {
		return dao.findByISBN13(isbn13);
	}

}
